﻿@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "出错了！";
    Layout = "~/Views/Shared/MainLayout.cshtml";
}

<div class="alertTitle">
    系统出错，请稍后再试!
</div>
<br/>
<br/>
<div class="alertText">
    非常抱歉，系统出错，请稍后再试! 页面会在 <span id="reloadTime" class="redText">5</span> 秒后，自动刷新!
    @{
        if(Sausage.Common.Utility.IsDebug)
        {
            <text>
                @Model.Exception.Message
                <br/>
                @Model.Exception.StackTrace
                <br/>
                @Model.ControllerName
                <br/>
                @Model.ActionName
            </text>
        }
    }
</div>

<script type="text/javascript">
    $(document).ready(function () {
        var time = 5;
        window.setInterval(function () {
            $("#reloadTime").text(time--);
            if (time <= 0) {
                window.location.reload(true);
            }
        }, 1000);
    });
</script>
